package edu.spec.dengyan.week04.class01;

public class Fish{

	String name;

	public Fish(String name){

		this.name=name;

	}

	public static void main(String[] args){

		Fish a=new Fish("潇潇");
		System.out.println(a.name);

	}

	public void eat(Sheel s){

		System.out.println("我是" + this.name + ", 我要吃"
				+ s.getName() + "。");

	}

	public void eat(Sheel s1, Sheel s2){

		System.out.println("我是" + this.name + ", 我先吃"
				+ s1.getName() + ", 后吃" + s2.getName());

	}

	public void eat(Prawn p){

		System.out.println("我是" + this.name + ", 我要吃"
				+ p.getName() + "。" );

	}

	public void eat(Sheel s, Prawn p){

		System.out.println("我是" + this.name + ", 我先吃"
				+ s.getName() + ", 后吃" + p.getName());
	}

	public void eat(Prawn p, Sheel s){

		System.out.println("我是" + this.name + ", 我先吃"
				+ p.getName() + ", 后吃" + s.getName());

	}

	/*public void eat(Prawn Prawn, Sheel Sheel){

	System.out.println("我是" + this.name + ", 我先吃"
	+ Prawn.getName() + ", 后吃" + Sheel.getName());

	}*/

	public String getName(){

		return this.name;

	}
}